package com.jzlin.funhub.admin.model.req;

import com.jzlin.funhub.admin.common.enums.QuestionPageSortEnum;
import com.jzlin.funhub.framework.core.http.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 分页查询问题记录.
 *
 * @author linjz
 * @since 2025/5/23
 */
@Getter
@Setter
@ApiModel
public class QuestionPageReq extends PageReq {
    /**
     * 问题状态
     * @see com.jzlin.funhub.admin.common.enums.QuestionStatusEnum
     */
    @ApiModelProperty("问题状态")
    private Integer status;

    /**
     * 问题分类id
     */
    @ApiModelProperty("问题分类id")
    private List<Integer> categoryIds;

    /**
     * 排序规则
     */
    @ApiModelProperty("排序规则")
    private String sortBy = QuestionPageSortEnum.Newest.name();
}
